package main

import "fmt"

func main() {

	var balance [10]float32 // declare the balance variable

	var balance2 []int
	balance2 = append(balance2, 1, 2, 3)
	fmt.Println("n==", balance2)
	balance2[6] = 10

	arrList := [...]float32{100.0, 2.0, 3.4, 7.0}
	arrList[6] = 10

	fmt.Println("arrList.length", len(arrList))

	arrList2 := [5]float32{100.0, 2.0, 3.4, 7.0}

	fmt.Println("arrList2", arrList2)

	arrList3 := [5]float32{1: 100.00, 4: 50.00}

	fmt.Println("arrList3", arrList3)

	// set the value of balance
	for i := 0; i <= len(arrList)-1; i++ {
		balance[i] = arrList[i]
	}
	fmt.Println("balance", balance)

	testArr := []int{1, 2, 3}
	fmt.Println("testArr.len", len(testArr))

	arr1 := []int{1, 2, 3, 4}

	testArr = append(testArr, arr1...)
	fmt.Println("testArr", testArr)
}
